﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using LinkCard.AdminCP.Common;
using System.Data;

namespace LinkCard.AdminCP.Message
{
    public partial class message_delete : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            Int64 nMessageID = ConvertUtility.ToInt64(Request.QueryString["MessageID"]);
            
            if (nMessageID > 0)
            {
                string sSQL = "delete message where MessageID=" + nMessageID;
                DataHelper.ExecuteNonQuery(sSQL, true);
                Response.Redirect("/Message/message_all_published.aspx");
            }
        }
    }
}